﻿$(document).ready(function () {
    var nodes = [];
    var combotree;
    $.post($("#ParentId_Tree").attr("data-ns-url"), { type: "2", __RequestVerificationToken: $("input[name='__RequestVerificationToken']").val() }, function (data) {
        $.each(data, function (index, category) {
            nodes.push({ id: category.categoryId, pId: category.parentId, name: category.name, type: category.moduleType });
        });
        combotree = ComboTree("#ParentId_Tree", "#CategoryId", "#ParentId_Text", "#ParentId_Btn", "#ParentId_Dropdown", "id", "pId", nodes, 2, "此栏目不能添加文章");
    });
});